package com.demo.mapper;

import com.demo.pojo.entity.Room;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author lenovo
* @description 针对表【room】的数据库操作Mapper
* @createDate 2025-01-27
* @Entity com.demo.pojo.entity.Room
*/
@Mapper
public interface RoomMapper extends BaseMapper<Room> {

    @Select("select * from classroom where ro_id = #{id}")
    Room selectById2(Integer id);

    @Select("select * from classroom where ro_name = #{roName}")
    Room selectByName(String roName);
}

